home *** CD-ROM | disk | FTP | other *** search
/ Atari Mega Archive 1 / Atari Mega Archive - Volume 1.iso / language / dl_exsrc.zoo / extras.h < prev    next >
C/C++ Source or Header  |  1994-07-04  |  2KB  |  68 lines

  1. #include <time.h>        /* for clock_t */
  2. #include <basepage.h>        /* for BASEPAGE */
  3. #include <setjmp.h>        /* for jmp_buf */
  4.  
  5. #ifndef __PROTO
  6. #  if __STDC__
  7. #    define __PROTO(x) x
  8. #  else
  9. #    define __PROTO(x) ()
  10. #  endif
  11. #endif
  12.  
  13. char *pfindfile __PROTO((const char *path, const char *afn, const char *ext));
  14.  
  15. char *wildcard __PROTO((char *pathname));
  16. char *_splitpath __PROTO((const char *src, char *drive, char *path,
  17.               char *file, char *ext));
  18. char *_makepath __PROTO((char *dst, const char *drive, const char *path,
  19.              const char *file, const char *ext));
  20.  
  21. char *strset __PROTO((char *string, int c));
  22. char *strnset __PROTO((char *string, int c, int n));
  23. char *substr __PROTO((char *dest, char *source, int start, int end));
  24. char *subnstr __PROTO((char *dest, char *source, int start, int length));
  25. char *stristr __PROTO((char *string, char *pattern));
  26. char *strpcpy __PROTO((char *dest, char *src, char *stop));
  27. int strpos __PROTO((char *string, int symbol));
  28. char *strrpbrk __PROTO((char *string, char *set));
  29. int strrpos __PROTO((char *string, int symbol));
  30. char *strtrim __PROTO((char *string, char *junk));
  31. char *stradj __PROTO((char *string, int dir));
  32. int strrpl __PROTO((char *string, char *ptrn, char *rpl, int n));
  33. int strirpl __PROTO((char *string, char *ptrn, char *rpl, int n));
  34. int memicmp __PROTO((char *blk1, char *blk2, int len));
  35. char *ctlcnv __PROTO((char *string));
  36.  
  37. char *lmemmove __PROTO((char *dest, char *source, long len));
  38. char *lmemcpy __PROTO((char *dest, char *source, long len));
  39.  
  40. void *lalloc __PROTO((long size));
  41. long lread __PROTO((int h, char *data, long length));
  42. long lwrite __PROTO((int h, char *data, long length));
  43.  
  44. BASEPAGE *Getbpact_pd __PROTO((void));
  45.  
  46. unsigned int GetTOSvers __PROTO((long *OS_date, unsigned int *OS_conf,
  47.                  unsigned int * OS_dosdate));
  48.  
  49. int Getcookie __PROTO(( long cookie, long *value ));
  50.  
  51. void perrorf __PROTO((char *fmt, ...));
  52.  
  53. int catch __PROTO((jmp_buf context, int (*func)(void)));
  54. void throw __PROTO((jump_buf context, int rv));
  55.  
  56. long fsize __PROTO((char *name));
  57.  
  58. long msize __PROTO((char *addr));
  59.  
  60. long memavail __PROTO((void));
  61.  
  62. clock_t start_timer __PROTO((clock_t *t));
  63. clock_t time_since __PROTO((clock_t *t));
  64.  
  65. void swab __PROTO((int *src, int *dst, int n));
  66.  
  67. int bdos __PROTO((int func, long parameter));
  68.